Putting asterisk before function call in python